<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>变形</title>
<style>
    div{
        display: inline-block;
        width: 200px;
        height: 200px;
        margin: 20px;
        padding: 20px;
        transition: 2s;
        color: white;
        background-color: lavender;
    }
    .x_translate:hover{
        background-color: aqua;
        transition: 2s;
        transform: translateX(200px);
    }

    .y_translate:hover{
        background-color: aqua;
        transition: 2s;
        transform: translateY(200px);

    }

    .xy_translate:hover{
        background-color: aqua;
        transition: 2s;
        transform: translate(200px,200px)
    }
    .rotate_l:hover{
        background-color: antiquewhite;
        transition: 2s;
        transform: rotate(-1800deg);
    }   

    .rotate_r:hover{
        background-color: antiquewhite;
        transition: 2s;
        transform: rotate(1800deg);
    }    
    .x_scale:hover{
        background-color: rgb(235, 31, 174);
        transition: 2s;
        transform: scaleX(1.5);
    }
    .y_scale:hover{
        background-color: rgb(235, 31, 174);
        transition: 2s;
        transform: scaleY(0.5);
        }

      .xy_scale:hover{
        background-color: rgb(235, 31, 174);
        transition: 2s;
        transform: scale(1.5,0.5);}

    .x_skew:hover{
        background-color: rgb(235, 31, 174);
        transition: 2s;
        transform: skewX(45deg);
    }

    .y_skew:hover{
        background-color: rgb(235, 31, 174);
        transition: 2s;
        transform: skewY(45deg);
    }

    .xy_skew:hover{
        background-color: rgb(235, 31, 174);
        transition: 2s;
        transform: skew(15deg,30deg);
    }
</style>
</head>
<body>
    <div class="rotate_l">2D向左旋转</div>
    <div class="rotate_r">2D向右旋转</div>  
    <br>
    <div class="x_translate">沿着X轴移动</div>
    <div class="y_translate">沿着Y轴移动</div>
    <div class="xy_translate">沿着XY轴移动</div>
    <br>
    <div class="x_scale">沿着X轴放大</div>
    <div class="y_scale">沿着Y轴缩小</div>
    <div class="xy_scale">沿着XY轴伸缩</div>
    <br>
    <div class="x_skew">基于X轴倾斜</div>
    <div class="y_skew">基于Y轴倾斜</div>
    <div class="xy_skew">基于XY轴倾斜</div>
</body>
</html>  